package com.handinglian.system.mapper;

import com.handinglian.system.dto.PermissionDto;
import com.handinglian.system.entity.Permission;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface PermissionMapper {
    int deleteByPrimaryKey(Integer permissionId);

    int insert(Permission record);

    int insertOrUpdate(Permission record);

    int insertOrUpdateSelective(Permission record);

    int insertSelective(Permission record);

    Permission selectByPrimaryKey(Integer permissionId);

    int updateByPrimaryKeySelective(Permission record);

    int updateByPrimaryKey(Permission record);

    int updateBatch(List<Permission> list);

    int batchInsert(@Param("list") List<Permission> list);

    List<Permission> find();

    List<PermissionDto> inquirePermissionByRoleId(@Param("roleId") Integer roleId);
}